package com.shareach.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.mongodb.core.query.Criteria;

import com.shareach.common.BaseQueryOrder;
import com.shareach.domain.BankCollectDomain;

public interface BankCollectService {
	// add
	void save(BankCollectDomain domain);

	// del
	void del(BankCollectDomain domain);

	// update
	void update(BankCollectDomain domain);

	// update by domain
	void update(BankCollectDomain domain, BankCollectDomain condition);

	// get by id
	BankCollectDomain getById(String id);

	// get list
	List<BankCollectDomain> getList(BankCollectDomain domain);

	// get list by condition
	List<BankCollectDomain> getListbyCriteria(Criteria criteria);

	// get list by page
	Page<BankCollectDomain> getPageResult(BankCollectDomain domain, BaseQueryOrder order);

	List<BankCollectDomain> findAll();

	void saveOrUpdate(BankCollectDomain bank);

	List<BankCollectDomain> getListByIds(List<Long> ids, BaseQueryOrder order);
}
